<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('增加工资记录')"/>
    <!--	<th:block th:include="include :: summernote-css" />-->
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-notice-add">
        <div class="form-group">
            <label class="col-sm-2 control-label is-required">员工：</label>
            <div class="col-sm-10">
                <select name="userId" class="form-control m-b" >
                    <option th:each="r:${list}" th:text="${r.userName}" th:value="${r.userId}"></option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label is-required">工资日期：</label>
            <div class="col-sm-10">
                <input type="text" class="time-input" id="salaryDate" placeholder="工资日期" name="salaryDate" required/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label is-required">应发工资：</label>
            <div class="col-sm-10">
                <input id="mustSalary" name="mustSalary" class="form-control" placeholder="应发工资" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label is-required">实发工资：</label>
            <div class="col-sm-10">
                <input id="realitySalary" name="realitySalary" class="form-control" placeholder="实发工资" type="text" required>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<!--<th:block th:include="include :: summernote-js" />-->
<script type="text/javascript">
    var prefix = ctx + "oa/salary";

    $("#form-notice-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-notice-add').serialize());
        }
    }
    $('#salaryDate').datetimepicker({
        format: 'yyyy-mm',
        weekStart: 1,
        autoclose: true,
        startView: 3,
        minView: 3,
        forceParse: false,
        language: 'cn'
    });
</script>
</body>
</html>
